package com.dongdongshop.em;

//枚举类 使用的时候直接取出
public enum ConstantEnum {
    SUCCESS(10000,"操作成功"),
    ERROR(10001,"操作失败"),
    ARGS(10008,"参数不能为空"),
    INEXISTENCE(10002,"账号不存在"),
    WRONGPASSWORD(10003,"用户名或密码错误"),
    UPDATE_SUCCESS(29002,"更新成功");



    private Integer code;
    private String message;

    ConstantEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
